package com.situ.java.domain;

import java.io.Serializable;

//        1-进书、办理借书卡
//        2-借书和还书功能
//        3-查询某书的借阅记录
//        4-查询谋卡的借阅记录
//        5-按借阅次数，显示图书信息。
public class Person implements Serializable{
    /** serialVersionUID*/  
    private static final long serialVersionUID = 16511L;
    
    private int id;
    private String name;

    public Person() { }

    public Person(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public int getId() { return id; }

    public void setId(int id) { this.id = id; }

    public String getName() { return name; }

    public void setName(String name) { this.name = name; }

    public String getDetails() {
        return id+"\t"+name;
    }

    @Override
    public String toString() {
        return getDetails();
    }
}
